package demo.android.com.mvpdemo.OKHttp;

/**
 * Created by Vya on 2018/1/18 0018.
 */

public enum  Method {
    POST("POST"),GET("GET"),HEAD("HEAD"),DELETE("DELETE"),PUT("PUT"),PATCH("PATCH");
    public String name;
    Method(String name) {
        this.name = name;
    }


    public boolean doOutput() {
        switch (this){
            case POST:
            case PUT:
                return true;
        }
        return false;
    }
}
